<?php

	$butCol = "#86B822";
	$butGradCol = "#E2EA79";
	
	$butRolCol = "#738091";
	$butRolGradCol = "#BEC8D6";

	function tipoBoton($nombre) {
		$me = $_SERVER['PHP_SELF'];
		if (strstr($me, $nombre)) { 
			return  "botonActivo"; 
		} else { 
			return "botonInactivo"; 
		}
	}

?>

<link rel="stylesheet" type="text/css" href="anylinkmenu.css" />

<script type="text/javascript">

	var anylinkmenu4={divclass:'anylinkmenu', inlinestyle:'background: #5884A0; border: 1px solid #BDC7D5; width:243px;', linktarget:''}
	anylinkmenu4.items=[
		["List", "abstract_proceeding_list.php"],
		["Add New", "abstract_proceeding_add.php"]
	]

</script>

<script type="text/javascript" src="anylinkmenu.js">
</script>

<script type="text/javascript">

//anylinkmenu.init("menu_anchors_class") //Pass in the CSS class of anchor links (that contain a sub menu)
anylinkmenu.init("menuanchorclass")

</script>

<style>

	.botonActivo {
		border: white solid thin; 
		padding: 0px; 
		background: <?php echo $butCol; ?>;
		color: white; 
		font-size: 12px;
		filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='<?php echo $butCol; ?>', endColorstr='<?php echo $butGradCol; ?>');
		background: -webkit-gradient(linear, left top, left bottom, from(<?php echo $butCol; ?>), to(<?php echo $butGradCol; ?>));
		background: -moz-linear-gradient(top,  <?php echo $butCol; ?>,  <?php echo $butGradCol; ?>);
	}
	
	.botonInactivo {
		border: white solid thin; 
		padding: 0px; 
		background-color: <?php echo $butRolCol; ?>;
		color: white; 
		font-size: 12px;
		filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='<?php echo $butRolCol; ?>', endColorstr='<?php echo $butRolGradCol; ?>');
		background: -webkit-gradient(linear, left top, left bottom, from(<?php echo $butRolCol; ?>), to(<?php echo $butRolGradCol; ?>));
		background: -moz-linear-gradient(top,  <?php echo $butRolCol; ?>,  <?php echo $butRolGradCol; ?>);
	}

</style>

<div style="width: 880px; background-color: #5884A0;">
	<table width="860" style="margin-left:20px; margin-top: 10px;">
		<tr>
			<td>
				<button class="<?php echo tipoBoton('congress_add.php'); ?>" onclick="window.location='congress_add.php';">
					<table cellpadding="5" cellspacing="5" width="140">
						<tr>
							<td align="center">
								<span>NEW CONGRESS</span>
							</td>
						</tr>
					</table>
				</button>
			</td>
			<td>
				<button class="<?php echo tipoBoton('congress_edit.php'); ?>" onclick="window.location='congress_edit.php';">
					<table cellpadding="5" cellspacing="5" width="140">
						<tr>
							<td align="center">
								<span>EDIT CONGRESS</span>
							</td>
						</tr>
					</table>
				</button>
			</td>
			<td>
				<button class="<?php if (strstr($_SERVER['PHP_SELF'], "abstract_proceeding_add") || strstr($_SERVER['PHP_SELF'], "abstract_proceeding_list")) { 
									echo "botonActivo"; 
								} else { 
									echo "botonInactivo"; 
								} ?> menuanchorclass" rel="anylinkmenu4">
					<table cellpadding="5" cellspacing="5" width="240">
						<tr>
							<td align="center">
								<span>ABSTRACTS / PROCEEDINGS</span>
							</td>
						</tr>
					</table>
				</button>
			</td>
			<td>
				<button class="<?php echo tipoBoton('admin_account.php'); ?>" onclick="window.location='admin_account.php';">
					<table cellpadding="5" cellspacing="5" width="140">
						<tr>
							<td align="center">
								<span>ADMIN ACCOUNT</span>
							</td>
						</tr>
					</table>
				</button>
			</td>
			<td>
				<button class="<?php echo tipoBoton('admin_account.php'); ?>" onclick="window.location='admin_welcome.php';">
					<table cellpadding="5" cellspacing="5" width="140">
						<tr>
							<td align="center">
								<span>WELCOME</span>
							</td>
						</tr>
					</table>
				</button>
			</td>
		</tr>
	</table>
	
</div>